package Java_promotion_136_228.Java206_228;

public class _211 {
    public static void main(String[] args) {
        Cook cook = new Cook();
        method(cook::makefood);
    }

    public static void method(Sitter sitter) {
        sitter.work("tudou");
    }
}

@FunctionalInterface
interface Sitte {
    void work(String fond);
}

class Cook {
    public void makefood(String food) {
        System.out.println("将" + food + "做成");
    }
}